package com.wlc.oop.demo03;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 测试
 * @date 2021-06-26 16:49
 */
public class Test {
    public static void main(String[] args) {
        Person person = new Person();
        person.say();
        Student student = new Student();
        student.say();
        System.out.println("=========");
        // 父类Person的引用 person1  指向子类 Student
        // 子类重写父类的方法
        Person person1 = new Student();
        person1.say();

    }
}
